package org.myself.meeting.model;

public class Employee {
    private Integer employeeid;
    private String employeename;
    private String username;
    private String phone;
    private String email;
    private Integer status;
    private Integer departmentid;
    private String password;
    private Integer role;
    private Integer awardtimes;




    public Integer getAwardtimes() {
        return awardtimes;
    }

    public void setAwardtimes(Integer awardtimes) {
        this.awardtimes = awardtimes;
    }

    public Integer getEmployeeid() {
        return employeeid;
    }

    public void setEmployeeid(Integer employeeid) {
        this.employeeid = employeeid;
    }

    public String getEmployeename() {
        return employeename;
    }

    public void setEmployeename(String employeename) {
        this.employeename = employeename;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getPhone() {
        return phone;
    }

    public void setPhone(String phone) {
        this.phone = phone;
    }

    public String getEmail() {
        return email;
    }

    public void setEmail(String email) {
        this.email = email;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    public Integer getDepartmentid() {
        return departmentid;
    }

    public void setDepartmentid(Integer departmentid) {
        this.departmentid = departmentid;
    }

    public String getPassword() {
        return password;
    }

    public void setPassword(String password) {
        this.password = password;
    }

    public Integer getRole() {
        return role;
    }

    public void setRole(Integer role) {
        this.role = role;
    }

    @Override
    public boolean equals(Object o) {
        if (this == o) return true;
        if (o == null || getClass() != o.getClass()) return false;

        Employee employee = (Employee) o;

        if (employeeid != null ? !employeeid.equals(employee.employeeid) : employee.employeeid != null) return false;
        if (employeename != null ? !employeename.equals(employee.employeename) : employee.employeename != null)
            return false;
        if (username != null ? !username.equals(employee.username) : employee.username != null) return false;
        if (phone != null ? !phone.equals(employee.phone) : employee.phone != null) return false;
        if (email != null ? !email.equals(employee.email) : employee.email != null) return false;
        if (status != null ? !status.equals(employee.status) : employee.status != null) return false;
        if (departmentid != null ? !departmentid.equals(employee.departmentid) : employee.departmentid != null)
            return false;
        if (password != null ? !password.equals(employee.password) : employee.password != null) return false;
        if (role != null ? !role.equals(employee.role) : employee.role != null) return false;
        return awardtimes != null ? awardtimes.equals(employee.awardtimes) : employee.awardtimes == null;
    }

    @Override
    public int hashCode() {
        int result = employeeid != null ? employeeid.hashCode() : 0;
        result = 31 * result + (employeename != null ? employeename.hashCode() : 0);
        result = 31 * result + (username != null ? username.hashCode() : 0);
        result = 31 * result + (phone != null ? phone.hashCode() : 0);
        result = 31 * result + (email != null ? email.hashCode() : 0);
        result = 31 * result + (status != null ? status.hashCode() : 0);
        result = 31 * result + (departmentid != null ? departmentid.hashCode() : 0);
        result = 31 * result + (password != null ? password.hashCode() : 0);
        result = 31 * result + (role != null ? role.hashCode() : 0);
        result = 31 * result + (awardtimes != null ? awardtimes.hashCode() : 0);
        return result;
    }

    @Override
    public String toString() {
        return "Employee{" +
                "employeeid=" + employeeid +
                ", employeename='" + employeename + '\'' +
                ", username='" + username + '\'' +
                ", phone='" + phone + '\'' +
                ", email='" + email + '\'' +
                ", status=" + status +
                ", departmentid=" + departmentid +
                ", password='" + password + '\'' +
                ", role=" + role +
                ", awardtimes=" + awardtimes +
                '}';
    }
}
